{{extend '../_layouts/home.html'}}

{{block 'title'}}{{'交换生 - 首页'}}{{/block}}
{{block 'head'}}
<link href="/public/css/main.css" rel="stylesheet">
<style>
.col-md-offset-2 {
    margin-left: 16.66666667%;
    top: -220px
}
</style>
{{/block}}
{{block 'body'}}
<section class="container">
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar">
        <ul class="nav nav-sidebar">
          <li><a href="/">管理员<span class="sr-only">(current)</span></a></li>
          <li><a href="/">院校</a></li>
          <li><a href="/">交换生</a></li>
          <li  class="active"><a href="/judge">第三方评估</a></li>
          <li><a href="/">翻译机构</a></li>
        </ul>
      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

        <h2 class="sub-header">评估学生</h2>
        <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>#</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>是否推荐</th>
                <th>评估信息</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              {{ each students }}
              <tr>
                  <td>{{ $index+1 }}</td>
                  <td>{{ $value.nickname }}</td>
                  <td>{{ $value.age }}</td>
                  <td>{{ $value.sex }}</td>
                  <td>{{ $value.isrec }}</td>
                  <td>{{ $value.judge }}</td>
                  <td>
                        {{if $value.isrec==='是'}}
                        <a href="/unrecomment-student?id={{ $value._id }}">取消推荐</a>
                        {{else}}
                        <a href="/recomment-student?id={{ $value._id }}">设为推荐</a>
                        {{/if}}
                    <a href="/edit-judge?id={{ $value._id }}">修改评估信息</a>
                  </td>
                </tr>
              {{ /each}}     
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
  <nav aria-label="Page navigation" >
    <ul class="pagination" style="margin-left: 200px">
      <li>
        <a href="#" aria-label="Previous">
        <span aria-hidden="true">&laquo;</span>
      </a>
      </li>
      <li class="active"><a href="#">1</a></li>
      <li><a href="#">2</a></li>
      <li><a href="#">3</a></li>
      <li><a href="#">4</a></li>
      <li><a href="#">5</a></li>
      <li>
        <a href="#" aria-label="Next">
        <span aria-hidden="true">&raquo;</span>
      </a>
      </li>
    </ul>
  </nav>
</section>
{{/block}}
